package com.knowvoyage.knowvoyageserver.service;

import com.github.pagehelper.PageInfo;
import com.knowvoyage.knowvoyageserver.pojo.entity.Message;
import com.knowvoyage.knowvoyageserver.pojo.vo.Result;
import java.awt.print.Pageable;
import java.util.List;

public interface MessageService {
    Result<Boolean> insert(Message message);
    Result<Boolean> deleteById(Long messageId);
    Result<Boolean> update(Message message);
    Result<Message> select(Long messageId);
    Result<List<Message>> selectByDialogId(Long dialogId);
    Result<Message> selectLastByDialogId(Long dialogId);
    Result<Integer> countByDialogId(Long dialogId);
    Result<PageInfo<Message>> selectByDialogIdPage(Long dialogId, int page, int size);
}